home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / src / points.c < prev    next >
C/C++ Source or Header  |  1994-04-12  |  2KB  |  134 lines

  1. #include "vogl.h"
  2.  
  3. /*
  4.  * pnt
  5.  *
  6.  * plot a point in x, y, z.
  7.  * This is just the old VOGLE routine point.
  8.  *
  9.  */
  10. void pnt(
  11.   float x,
  12.   float y,
  13.   float z)
  14. {
  15.  
  16. if(!vdevice.initialised)
  17. verror("pnt: vogl not initialised");
  18.  
  19. move(x, y, z);  
  20. draw(x, y, z);    
  21. }
  22.  
  23. /* ------------------------------------------------------------------------ */
  24.  
  25.  
  26. /*
  27.  * pnts
  28.  *
  29.  * plot a point (short integer version)
  30.  *
  31.  */
  32. void pnts(
  33.   Scoord x,
  34.   Scoord y,
  35.   int z)
  36. {
  37. pnt((Coord)x, (Coord)y, (Coord)z);
  38. }
  39.  
  40. /* ------------------------------------------------------------------------ */
  41.  
  42. /*
  43.  * pnti
  44.  *
  45.  * plot a point (short integer version)
  46.  *
  47.  */
  48. void pnti(
  49.   Icoord x,
  50.   Icoord y,
  51.   Icoord z)
  52. {
  53. pnt((Coord)x, (Coord)y, (Coord)z);
  54. }
  55.  
  56. /* ------------------------------------------------------------------------ */
  57.  
  58. /*
  59.  * pnt2
  60.  *
  61.  * plot a point in x, y.
  62.  *
  63.  */
  64. void pnt2(
  65.   Coord x,
  66.   Coord y)
  67. {
  68. move(x, y, 0.0);
  69. draw(x, y, 0.0);
  70. }
  71.  
  72. /* ------------------------------------------------------------------------ */
  73.  
  74. /*
  75.  * pnt2s in x, y
  76.  *
  77.  * plot a point (short integer version)
  78.  *
  79.  */
  80. void pnt2s(
  81.   Scoord x,
  82.   Scoord y)
  83. {
  84. pnt2((Coord)x, (Coord)y);
  85. }
  86.  
  87. /* ------------------------------------------------------------------------ */
  88.  
  89. /*
  90.  * pnt2i in x, y
  91.  *
  92.  * plot a point (short integer version)
  93.  *
  94.  */
  95. void pnt2i(
  96.   Icoord x,
  97.   Icoord y)
  98. {
  99. pnt2((Coord)x, (Coord)y);
  100. }
  101.  
  102. /* ------------------------------------------------------------------------ */
  103.  
  104. /*
  105.  * bgnpoint
  106.  *
  107.  *     Flags that all v*() routine points will be building up a point list.
  108.  */
  109. void bgnpoint(void)
  110. {
  111. if (vdevice.bgnmode != NONE)
  112. verror("vogl: bgnpoint mode already belongs to some other bgn routine");
  113.  
  114. vdevice.bgnmode = VPNT;
  115. vdevice.save = 0;
  116. }
  117.  
  118. /* ------------------------------------------------------------------------ */
  119.  
  120. /*
  121.  * endpoint
  122.  *
  123.  *     Flags that all v*() routine points will be simply setting the 
  124.  *     current position.
  125.  */
  126. void endpoint(void)
  127. {
  128. vdevice.bgnmode = NONE;
  129. vdevice.save = 0;
  130. }
  131.  
  132. /* ------------------------------------------------------------------------ */
  133.  
  134.